// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) definits fieldsfirst ansi space safe 
// Source File Name:   Light.java

package jones;

import java.util.Observable;

// Referenced classes of package jones:
//            SimObject

public class Light extends Observable
    implements SimObject
{

    private double x = 0;
    private double y = 0;
    private double brightness = 0;

    public Light()
    {
        x = 0.0D;
        y = 0.0D;
        brightness = 1.0D;
        setChanged();
    }

    public Light(Light light)
    {
        x = 0.0D;
        y = 0.0D;
        brightness = 1.0D;
        x = light.x;
        y = light.y;
        brightness = light.brightness;
    }

    public Light(double x, double y, double brightness)
    {
        this.x = 0.0D;
        this.y = 0.0D;
        this.brightness = 1.0D;
        this.x = x;
        this.y = y;
        this.brightness = brightness;
        setChanged();
    }

    public double getX()
    {
        return x;
    }

    public void setX(double x)
    {
        this.x = x;
        setChanged();
    }

    public double getY()
    {
        return y;
    }

    public void setY(double y)
    {
        this.y = y;
        setChanged();
    }

    public double getBrightness()
    {
        return brightness;
    }

    public void setBrightness(double brightness)
    {
        this.brightness = brightness;
        setChanged();
    }

    public void update(double time)
    {
        setChanged();
    }

    public String toString()
    {
        String s = "x = " + x + "\n" + "y = " + y + "\n" + "brightness = " + brightness + "\n";
        return s;
    }
}
